﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Nirvana
{
    /// <summary>
    /// 基本playerAudio控制接口，全局单例，不作具体功能，用于在快速频繁创建aduio时，当上一个aduio功能还未执行结束时，触发一个空执行逻辑
    /// </summary>
    public sealed class PlayerAudioBasic : IPlayerAudio
    {
        private static PlayerAudioBasic inst;

        public static  PlayerAudioBasic Instance
        {
            get
            {
                if (inst == null) inst = new PlayerAudioBasic();
                return inst;
            }
        }
        public bool IsPlaying { get { return false; } }
        public float GetRamingTime() { return 0; }
        public IEnumerator WaitFinish()
        {
            yield return null;
        }

        public void Stop() { }
        public void Set(Vector3 pos) { }
        public void Set(Transform root) { }
        public void Play() { }
        public void Update() { }
        public void Remove() { }

    }


}

